import Vue from 'vue'
import Vuex from 'vuex'
import { getRandom } from '@/common/utils.js'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    textClass: 'text-hot'
  },
  mutations: {
    changeTextClass () {
      const textClassList = ['text-hot', 'text-info', 'text-primary', 'text-black']
      this.textClass = textClassList[getRandom(0, textClassList.length)]
    }
  },
  actions: {
  },
  modules: {
  }
})
